package com.stylefeng.guns.modular.train.service.impl;

import com.stylefeng.guns.common.persistence.dao.ContestPointsMapper;
import com.stylefeng.guns.common.persistence.model.ContestPoints;
import com.stylefeng.guns.common.persistence.model.MentoringRelationPoints;
import com.stylefeng.guns.common.persistence.dao.MentoringRelationPointsMapper;
import com.stylefeng.guns.common.persistence.service.impl.PointServiceImpl;
import com.stylefeng.guns.modular.train.service.IMentoringRelationPointsService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author rockjh
 * @since 2018-01-29
 */
@Service
public class MentoringRelationPointsServiceImpl extends PointServiceImpl<MentoringRelationPointsMapper, MentoringRelationPoints> implements IMentoringRelationPointsService {

    @Autowired
    private MentoringRelationPointsMapper mentoringRelationPointsMapper;

    @Override
    public MentoringRelationPoints findByEmpYearIntegralType(String empCode, String year, String integralTypeCode) {
        return mentoringRelationPointsMapper.findByEmpYearIntegralType(empCode,year,integralTypeCode);
    }

    @Override
    public List<MentoringRelationPoints> selectInEmpCode(List<String> empCodes, String year) {
        return mentoringRelationPointsMapper.selectInEmpCode(empCodes,year);
    }

    @Override
    public Double sumIntegralInEmpCode(List<String> item, String year) {
        return mentoringRelationPointsMapper.sumIntegralInEmpCode(item,year);
    }
}
